home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / NameDlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  1.2 KB  |  59 lines

  1. // NameDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Radiant.h"
  6. #include "NameDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CNameDlg dialog
  16.  
  17.  
  18. CNameDlg::CNameDlg(const char *pName, CWnd* pParent /*=NULL*/)
  19.     : CDialog(CNameDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CNameDlg)
  22.     m_strName = _T("");
  23.     //}}AFX_DATA_INIT
  24.   m_strCaption = pName;
  25. }
  26.  
  27.  
  28. void CNameDlg::DoDataExchange(CDataExchange* pDX)
  29. {
  30.     CDialog::DoDataExchange(pDX);
  31.     //{{AFX_DATA_MAP(CNameDlg)
  32.     DDX_Text(pDX, IDC_EDIT_NAME, m_strName);
  33.     //}}AFX_DATA_MAP
  34. }
  35.  
  36.  
  37. BEGIN_MESSAGE_MAP(CNameDlg, CDialog)
  38.     //{{AFX_MSG_MAP(CNameDlg)
  39.     //}}AFX_MSG_MAP
  40. END_MESSAGE_MAP()
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CNameDlg message handlers
  44.  
  45. void CNameDlg::OnOK() 
  46. {
  47.     CDialog::OnOK();
  48. }
  49.  
  50. BOOL CNameDlg::OnInitDialog() 
  51. {
  52.     CDialog::OnInitDialog();
  53.  
  54.   SetWindowText(m_strCaption);
  55.     
  56.     return TRUE;  // return TRUE unless you set the focus to a control
  57.                   // EXCEPTION: OCX Property Pages should return FALSE
  58. }
  59.